package com.wx.springboot.step3.dto;

import io.swagger.annotations.ApiModelProperty;
import jdk.nashorn.internal.objects.annotations.Constructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

@Data
public class UserDto {
    @ApiModelProperty(value = "用户名",required = true)
    @NotNull(message = "用户名不能为空.")
    private String name;
    @ApiModelProperty(value = "密码",required = true)
    @NotNull(message = "密码不能为空.")
    private String password;
}
